package com.tinyideatech.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tinyideatech.system.entity.CarCode;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author zhangy-5
 * @date 2019-09-09
 */
@Repository
public interface CarCodeMapper extends BaseMapper<CarCode> {

    @Select("SELECT * FROM car_code WHERE code=#{code}")
    CarCode selectAllByCode(String code);
}